﻿namespace HRM.CORE
{
    using DevExpress.Data;
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraBars.Docking;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.BandedGrid;
    using DevExpress.XtraGrid.Views.Base;
    using DevExpress.XtraGrid.Views.Grid;
    using APP.HELPER;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Common.Report;
    using HRM.CORE;
    using HRM.CORE.REPORT;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;
    using Common;
    using Extra.ERP;

    public class xucInsuranceByMonth : Common.xucBase
    {
        private Bar bar1;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private BarEditItem bbeMonth;
        private BarEditItem bbeYear;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiExport;
        private BarEditItem bbiFilter;
        private BarButtonItem bbiFormula;
        private BarButtonItem bbiPrint;
        private BarButtonItem bbiReload;
        private Common.Class.clsAllOption clsAllOption = new Common.Class.clsAllOption();
        private BandedGridColumn colBasicSalary;
        private GridColumn colEmployeeCode;
        private GridColumn colFirstName;
        private BandedGridColumn colHealth;
        private BandedGridColumn colHealthInsurance;
        private BandedGridColumn colHealthInsurance1;
        private BandedGridColumn colInsurance;
        private BandedGridColumn colInsurance1;
        private BandedGridColumn colInsuranceCode;
        private GridColumn colLastName;
        private BandedGridColumn colSocial;
        private BandedGridColumn colSocialInsurance;
        private BandedGridColumn colSocialInsurance1;
        private BandedGridColumn colTotalInsurance;
        private BandedGridColumn colUnemployment;
        private BandedGridColumn colUnemploymentInsurance;
        private BandedGridColumn colUnemploymentInsurance1;
        private IContainer components = null;
        private DockManager dockManager1;
        private DockPanel dockPanel1;
        private ControlContainer dockPanel1_Container;
        private GridBand gBandHealthInsurance;
        private GridBand gBandSocialInsurance;
        private GridBand gBandUnemploymentInsurance;
        private AdvBandedGridView gbList;
        private GridControl gcList;
        private GridBand gridBand1;
        private GridBand gridBand2;
        private GridBand gridBand5;
        private GridColumn gridColumn1;
        private GridColumn gridColumn2;
        private BandedGridColumn gridColumn3;
        private BandedGridColumn gridColumn4;
        private BandedGridColumn gridColumn5;
        private BandedGridColumn gridColumn6;
        private BandedGridColumn gridColumn7;
        private BandedGridColumn gridColumn8;
        private AutoHideContainer hideContainerLeft;
        public DevExpress.Utils.ImageCollection imageCollection2;
        private string m_Code = MyLogin.Code;
        private int m_Level = MyLogin.Level;
        private int m_Month = 0;
        private int m_Year = 0;
        private RepositoryItemImageComboBox repBranch;
        private RepositoryItemCalcEdit repCalculator;
        private RepositoryItemImageComboBox repDepartment;
        private RepositoryItemGridLookUpEdit repEmployee;
        private RepositoryItemComboBox repEmployeeName;
        private RepositoryItemImageComboBox repFilter;
        private RepositoryItemImageComboBox repGroup;
        private RepositoryItemTimeEdit repMonth;
        private RepositoryItemComboBox repositoryItemComboBox1;
        private GridView repositoryItemGridLookUpEdit1View;
        private RepositoryItemTimeEdit repYear;
        private xucOrganization xucOrganization1;

        public event ClosedHander Closed;

        public xucInsuranceByMonth()
        {
            this.InitializeComponent();
            this.Init();
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            if (base.ParentForm != null)
            {
                base.ParentForm.Close();
            }
        }

        private void bbiExport_ItemClick(object sender, ItemClickEventArgs e)
        {
            base._exportView = this.gbList;
            SYS_LOG.Insert("Bảng Lương Theo Ph\x00f2ng Ban", "Xuất");
            base.Export();
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            SYS_LOG.Insert("Bảng Lương", "In");
            xfmReport report = new xfmReport();
            rptInsuranceByMonth xtraReport = new rptInsuranceByMonth(this.m_Level, this.m_Code, this.m_Year, this.m_Month);
            report.SetTitle("Danh S\x00e1ch Tham Gia Bảo Hiểm Th\x00e1ng " + this.m_Month.ToString() + "/" + this.m_Year.ToString());
            report.ShowPrintPreview(xtraReport);
        }

        private void bbiReload_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            if (e.RowHandle == -2147483648)
            {
                e.Handled = true;
                e.Painter.DrawObject(e.Info);
                Rectangle bounds = e.Bounds;
                e.Graphics.FillRectangle(new SolidBrush(Color.FromArgb(0x3f, 0xa5, 0xa5, 0)), bounds);
                bounds.Height--;
                bounds.Width--;
                e.Graphics.DrawRectangle(Pens.Blue, bounds);
            }
            int rowHandle = e.RowHandle;
            if (rowHandle >= 0)
            {
                rowHandle++;
                e.Info.DisplayText = rowHandle.ToString();
            }
        }

        private void Init()
        {
            base.SetWaitDialogCaption("Đang khởi tạo dữ liệu....");
            this.m_Year = this.clsAllOption.MonthDefault.Year;
            this.m_Month = this.clsAllOption.MonthDefault.Month;
            this.bbeYear.EditValue = this.clsAllOption.MonthDefault;
            this.bbeMonth.EditValue = this.clsAllOption.MonthDefault;
            this.repMonth.EditValueChanging += new ChangingEventHandler(this.repMonth_EditValueChanging);
            this.repMonth.EditValueChanged += new EventHandler(this.repMonth_EditValueChanged);
            this.repYear.EditValueChanging += new ChangingEventHandler(this.repYear_EditValueChanging);
            this.repYear.EditValueChanged += new EventHandler(this.repYear_EditValueChanged);
            this.LoadGrid(this.m_Level, this.m_Code);
            this.xucOrganization1.LoadData();
            this.xucOrganization1.Selected += delegate (object s, Organization o) {
                if (o.Level == 0)
                {
                    this.LoadGrid(this.m_Level = 0, this.m_Code = "");
                }
                else if (o.Level == 1)
                {
                    this.LoadGrid(this.m_Level = 1, this.m_Code = o.BranchCode);
                }
                else if (o.Level == 2)
                {
                    this.LoadGrid(this.m_Level = 2, this.m_Code = o.DepartmentCode);
                }
                else if (o.Level == 3)
                {
                    this.LoadGrid(this.m_Level = 3, this.m_Code = o.GroupCode);
                }
            };
            this.xucOrganization1.Updated += o => this.xucOrganization1.LoadData();
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            SuperToolTip tip = new SuperToolTip();
            ToolTipItem item = new ToolTipItem();
            SuperToolTip tip2 = new SuperToolTip();
            ToolTipItem item2 = new ToolTipItem();
            SuperToolTip tip3 = new SuperToolTip();
            ToolTipItem item3 = new ToolTipItem();
            SuperToolTip tip4 = new SuperToolTip();
            ToolTipItem item4 = new ToolTipItem();
            MenuButton button = new MenuButton();
            ItemCommand command = new ItemCommand();
            ItemCommand command2 = new ItemCommand();
            ItemCommand command3 = new ItemCommand();
            ItemCommand command4 = new ItemCommand();
            ItemCommand command5 = new ItemCommand();
            ItemCommand command6 = new ItemCommand();
            ItemCommand command7 = new ItemCommand();
            ItemCommand command8 = new ItemCommand();
            ItemCommand command9 = new ItemCommand();
            ItemCommand command10 = new ItemCommand();
            ItemCommand command11 = new ItemCommand();
            ItemCommand command12 = new ItemCommand();
            ItemCommand command13 = new ItemCommand();
            ItemCommand command14 = new ItemCommand();
            ItemCommand command15 = new ItemCommand();
            ItemCommand command16 = new ItemCommand();
            ItemCommand command17 = new ItemCommand();
            ItemCommand command18 = new ItemCommand();
            ItemCommand command19 = new ItemCommand();
            ItemCommand command20 = new ItemCommand();
            ItemCommand command21 = new ItemCommand();
            ItemCommand command22 = new ItemCommand();
            ItemCommand command23 = new ItemCommand();
            ItemCommand command24 = new ItemCommand();
            ItemCommand command25 = new ItemCommand();
            ItemCommand command26 = new ItemCommand();
            ItemCommand command27 = new ItemCommand();
            ItemCommand command28 = new ItemCommand();
            ItemCommand command29 = new ItemCommand();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xucInsuranceByMonth));
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.bbeMonth = new BarEditItem();
            this.repMonth = new RepositoryItemTimeEdit();
            this.bbeYear = new BarEditItem();
            this.repYear = new RepositoryItemTimeEdit();
            this.bbiPrint = new BarButtonItem();
            this.bbiExport = new BarButtonItem();
            this.bbiReload = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.dockManager1 = new DockManager(this.components);
            this.hideContainerLeft = new AutoHideContainer();
            this.dockPanel1 = new DockPanel();
            this.dockPanel1_Container = new ControlContainer();
            this.xucOrganization1 = new xucOrganization();
            this.imageCollection2 = new DevExpress.Utils.ImageCollection(this.components);
            this.bbiFormula = new BarButtonItem();
            this.bbiFilter = new BarEditItem();
            this.repFilter = new RepositoryItemImageComboBox();
            this.repEmployeeName = new RepositoryItemComboBox();
            this.repEmployee = new RepositoryItemGridLookUpEdit();
            this.repositoryItemGridLookUpEdit1View = new GridView();
            this.colEmployeeCode = new GridColumn();
            this.colFirstName = new GridColumn();
            this.colLastName = new GridColumn();
            this.repositoryItemComboBox1 = new RepositoryItemComboBox();
            this.repDepartment = new RepositoryItemImageComboBox();
            this.repBranch = new RepositoryItemImageComboBox();
            this.repGroup = new RepositoryItemImageComboBox();
            this.gridColumn1 = new GridColumn();
            this.gridColumn2 = new GridColumn();
            this.gcList = new GridControl();
            this.gbList = new AdvBandedGridView();
            this.gridBand1 = new GridBand();
            this.gridColumn3 = new BandedGridColumn();
            this.gridColumn4 = new BandedGridColumn();
            this.gridColumn5 = new BandedGridColumn();
            this.colInsuranceCode = new BandedGridColumn();
            this.gridBand2 = new GridBand();
            this.colBasicSalary = new BandedGridColumn();
            this.repCalculator = new RepositoryItemCalcEdit();
            this.gridColumn6 = new BandedGridColumn();
            this.gridColumn7 = new BandedGridColumn();
            this.gridColumn8 = new BandedGridColumn();
            this.gBandSocialInsurance = new GridBand();
            this.colSocialInsurance1 = new BandedGridColumn();
            this.colSocialInsurance = new BandedGridColumn();
            this.colSocial = new BandedGridColumn();
            this.gBandHealthInsurance = new GridBand();
            this.colHealthInsurance1 = new BandedGridColumn();
            this.colHealthInsurance = new BandedGridColumn();
            this.colHealth = new BandedGridColumn();
            this.gBandUnemploymentInsurance = new GridBand();
            this.colUnemploymentInsurance1 = new BandedGridColumn();
            this.colUnemploymentInsurance = new BandedGridColumn();
            this.colUnemployment = new BandedGridColumn();
            this.gridBand5 = new GridBand();
            this.colTotalInsurance = new BandedGridColumn();
            this.colInsurance1 = new BandedGridColumn();
            this.colInsurance = new BandedGridColumn();
            this.barManager1.BeginInit();
            this.repMonth.BeginInit();
            this.repYear.BeginInit();
            this.dockManager1.BeginInit();
            this.hideContainerLeft.SuspendLayout();
            this.dockPanel1.SuspendLayout();
            this.dockPanel1_Container.SuspendLayout();
            this.imageCollection2.BeginInit();
            this.repFilter.BeginInit();
            this.repEmployeeName.BeginInit();
            this.repEmployee.BeginInit();
            this.repositoryItemGridLookUpEdit1View.BeginInit();
            this.repositoryItemComboBox1.BeginInit();
            this.repDepartment.BeginInit();
            this.repBranch.BeginInit();
            this.repGroup.BeginInit();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.repCalculator.BeginInit();
            base.SuspendLayout();
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.DockManager = this.dockManager1;
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection2;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbiPrint, this.bbiReload, this.bbiFormula, this.bbiClose, this.bbeYear, this.bbiExport, this.bbiFilter, this.bbeMonth });
            this.barManager1.MaxItemId = 0x1c;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repYear, this.repEmployeeName, this.repEmployee, this.repositoryItemComboBox1, this.repDepartment, this.repBranch, this.repGroup, this.repFilter, this.repMonth });
            this.bar1.BarName = "Tools";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeMonth, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbeYear, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiExport, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiReload, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Tools";
            this.bbeMonth.Caption = "Th\x00e1ng:";
            this.bbeMonth.Edit = this.repMonth;
            this.bbeMonth.Id = 0x1b;
            this.bbeMonth.Name = "bbeMonth";
            this.repMonth.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repMonth.Appearance.Options.UseFont = true;
            this.repMonth.AutoHeight = false;
            this.repMonth.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repMonth.Mask.EditMask = "MM";
            this.repMonth.Name = "repMonth";
            this.bbeYear.Caption = "Năm:";
            this.bbeYear.Edit = this.repYear;
            this.bbeYear.Id = 14;
            this.bbeYear.Name = "bbeYear";
            this.bbeYear.Width = 70;
            this.repYear.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repYear.Appearance.Options.UseFont = true;
            this.repYear.AutoHeight = false;
            this.repYear.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.repYear.Mask.EditMask = "yyyy";
            this.repYear.Name = "repYear";
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 5;
            this.bbiPrint.ImageIndex = 9;
            this.bbiPrint.ItemShortcut = new BarShortcut(Keys.Control | Keys.P);
            this.bbiPrint.Name = "bbiPrint";
            item.Text = "Ctrl+P";
            tip.Items.Add(item);
            this.bbiPrint.SuperTip = tip;
            this.bbiPrint.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiExport.Caption = "Xuất";
            this.bbiExport.Id = 0x11;
            this.bbiExport.ImageIndex = 0x31;
            this.bbiExport.ItemShortcut = new BarShortcut(Keys.Control | Keys.E);
            this.bbiExport.Name = "bbiExport";
            item2.Text = "Ctrl+E";
            tip2.Items.Add(item2);
            this.bbiExport.SuperTip = tip2;
            this.bbiExport.ItemClick += new ItemClickEventHandler(this.bbiExport_ItemClick);
            this.bbiReload.Caption = "Nạp Lại";
            this.bbiReload.Id = 8;
            this.bbiReload.ImageIndex = 0x2a;
            this.bbiReload.ItemShortcut = new BarShortcut(Keys.F5);
            this.bbiReload.Name = "bbiReload";
            item3.Text = "F5";
            tip3.Items.Add(item3);
            this.bbiReload.SuperTip = tip3;
            this.bbiReload.ItemClick += new ItemClickEventHandler(this.bbiReload_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 12;
            this.bbiClose.ImageIndex = 0x16;
            this.bbiClose.ItemShortcut = new BarShortcut(Keys.F10);
            this.bbiClose.Name = "bbiClose";
            item4.Text = "F10";
            tip4.Items.Add(item4);
            this.bbiClose.SuperTip = tip4;
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.dockManager1.AutoHideContainers.AddRange(new AutoHideContainer[] { this.hideContainerLeft });
            this.dockManager1.Form = this;
            this.dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl" });
            this.hideContainerLeft.Controls.Add(this.dockPanel1);
            this.hideContainerLeft.Dock = DockStyle.Left;
            this.hideContainerLeft.Location = new Point(0, 0x1a);
            this.hideContainerLeft.Name = "hideContainerLeft";
            this.hideContainerLeft.Size = new Size(0x13, 0x261);
            this.dockPanel1.Controls.Add(this.dockPanel1_Container);
            this.dockPanel1.Dock = DockingStyle.Left;
            this.dockPanel1.ID = new Guid("d7780374-5c6d-46c9-b880-4e1e6733d6b5");
            this.dockPanel1.Location = new Point(0, 0);
            this.dockPanel1.Name = "dockPanel1";
            this.dockPanel1.OriginalSize = new Size(0x108, 200);
            this.dockPanel1.SavedDock = DockingStyle.Left;
            this.dockPanel1.SavedIndex = 0;
            this.dockPanel1.Size = new Size(0x108, 0x261);
            this.dockPanel1.Text = "Ph\x00f2ng Ban V\x00e0 Tổ Nh\x00f3m";
            this.dockPanel1.Visibility = DockVisibility.AutoHide;
            this.dockPanel1_Container.Controls.Add(this.xucOrganization1);
            this.dockPanel1_Container.Location = new Point(3, 0x19);
            this.dockPanel1_Container.Name = "dockPanel1_Container";
            this.dockPanel1_Container.Size = new Size(0x102, 0x245);
            this.dockPanel1_Container.TabIndex = 0;
            this.xucOrganization1.Dock = DockStyle.Fill;
            this.xucOrganization1.IsClose = CloseOrNew.None;
            this.xucOrganization1.Location = new Point(0, 0);
            this.xucOrganization1.Name = "xucOrganization1";
            this.xucOrganization1.NotSave = false;
            command.Caption = "";
            command.Enable = false;
            command.Visibility = BarItemVisibility.Never;
            button.Add = command;
            command2.Caption = "";
            command2.Enable = false;
            command2.Visibility = BarItemVisibility.Never;
            button.Cancel = command2;
            command3.Caption = "";
            command3.Enable = false;
            command3.Visibility = BarItemVisibility.Never;
            button.Change = command3;
            command4.Caption = "";
            command4.Enable = false;
            command4.Visibility = BarItemVisibility.Never;
            button.Close = command4;
            command5.Caption = "";
            command5.Enable = false;
            command5.Visibility = BarItemVisibility.Never;
            button.Custom = command5;
            command6.Caption = "";
            command6.Enable = false;
            command6.Visibility = BarItemVisibility.Never;
            button.Delete = command6;
            command7.Caption = "";
            command7.Enable = false;
            command7.Visibility = BarItemVisibility.Never;
            button.Export = command7;
            command8.Caption = "";
            command8.Enable = false;
            command8.Visibility = BarItemVisibility.Never;
            button.Filter = command8;
            command9.Caption = "";
            command9.Enable = false;
            command9.Visibility = BarItemVisibility.Never;
            button.FilterCustomer = command9;
            command10.Caption = "";
            command10.Enable = false;
            command10.Visibility = BarItemVisibility.Never;
            button.FilterStock = command10;
            command11.Caption = "";
            command11.Enable = false;
            command11.Visibility = BarItemVisibility.Never;
            button.Find = command11;
            button.GClose = false;
            button.GCommand = false;
            button.GExport = false;
            command12.Caption = "";
            command12.Enable = false;
            command12.Visibility = BarItemVisibility.Never;
            button.Go = command12;
            button.GOption = false;
            button.GPrint = false;
            button.GRecords = false;
            button.GSearchBar = false;
            button.GSettings = false;
            button.GVaildation = false;
            command13.Caption = "";
            command13.Enable = false;
            command13.Visibility = BarItemVisibility.Never;
            button.Import = command13;
            command14.Caption = "";
            command14.Enable = false;
            command14.Visibility = BarItemVisibility.Never;
            button.Next = command14;
            command15.Caption = "";
            command15.Enable = false;
            command15.Visibility = BarItemVisibility.Never;
            button.PageSetup = command15;
            button.PHome = false;
            command16.Caption = "";
            command16.Enable = false;
            command16.Visibility = BarItemVisibility.Never;
            button.Previous = command16;
            command17.Caption = "";
            command17.Enable = false;
            command17.Visibility = BarItemVisibility.Never;
            button.Print = command17;
            command18.Caption = "";
            command18.Enable = false;
            command18.Visibility = BarItemVisibility.Never;
            button.PrintPreview = command18;
            button.PTool = false;
            command19.Caption = "";
            command19.Enable = false;
            command19.Visibility = BarItemVisibility.Never;
            button.Redo = command19;
            command20.Caption = "";
            command20.Enable = false;
            command20.Visibility = BarItemVisibility.Never;
            button.Refresh = command20;
            command21.Caption = "";
            command21.Enable = false;
            command21.Visibility = BarItemVisibility.Never;
            button.Save = command21;
            command22.Caption = "";
            command22.Enable = false;
            command22.Visibility = BarItemVisibility.Never;
            button.SaveAndClose = command22;
            command23.Caption = "";
            command23.Enable = false;
            command23.Visibility = BarItemVisibility.Never;
            button.SaveAndNew = command23;
            command24.Caption = "";
            command24.Enable = false;
            command24.Visibility = BarItemVisibility.Never;
            button.Search = command24;
            command25.Caption = "";
            command25.Enable = false;
            command25.Visibility = BarItemVisibility.Never;
            button.SearchText = command25;
            command26.Caption = "";
            command26.Enable = false;
            command26.Visibility = BarItemVisibility.Never;
            button.Task = command26;
            command27.Caption = "";
            command27.Enable = false;
            command27.Visibility = BarItemVisibility.Never;
            button.Undo = command27;
            command28.Caption = "";
            command28.Enable = false;
            command28.Visibility = BarItemVisibility.Never;
            button.Vaildate = command28;
            command29.Caption = "";
            command29.Enable = false;
            command29.Visibility = BarItemVisibility.Never;
            button.View = command29;
            this.xucOrganization1.RibbonBar = button;
            this.xucOrganization1.Size = new Size(0x102, 0x245);
            this.xucOrganization1.Status = Actions.None;
            this.xucOrganization1.TabIndex = 1;
            this.xucOrganization1.Title = "";
            this.imageCollection2.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection2.ImageStream");
            this.imageCollection2.Images.SetKeyName(0x3d, "Vista (35).ico");
            this.imageCollection2.Images.SetKeyName(0x3e, "Security.ico");
            this.imageCollection2.Images.SetKeyName(0x3f, "RibbonPrintPreview_DocumentMapLarge.png");
            this.imageCollection2.Images.SetKeyName(0x40, "11.png");
            this.imageCollection2.Images.SetKeyName(0x41, "Sua.png");
            this.imageCollection2.Images.SetKeyName(0x42, "Them.png");
            this.imageCollection2.Images.SetKeyName(0x43, "PhanQuyen.png");
            this.imageCollection2.Images.SetKeyName(0x44, "11.png");
            this.imageCollection2.Images.SetKeyName(0x45, "plus.png");
            this.bbiFormula.Caption = "Thiết Lập C\x00f4ng Thức";
            this.bbiFormula.Id = 10;
            this.bbiFormula.ImageIndex = 0;
            this.bbiFormula.Name = "bbiFormula";
            this.bbiFilter.Caption = "Thống K\x00ea Theo:";
            this.bbiFilter.Edit = this.repFilter;
            this.bbiFilter.Id = 0x1a;
            this.bbiFilter.Name = "bbiFilter";
            this.bbiFilter.Width = 180;
            this.repFilter.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repFilter.Appearance.Options.UseFont = true;
            this.repFilter.AutoHeight = false;
            this.repFilter.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repFilter.Items.AddRange(new ImageComboBoxItem[] { new ImageComboBoxItem("Mức lương th\x00e1ng", 0, -1), new ImageComboBoxItem("Lương căn bản", 1, -1), new ImageComboBoxItem("Lương theo ng\x00e0y c\x00f4ng", 2, -1), new ImageComboBoxItem("Lương th\x00eam giờ", 3, -1), new ImageComboBoxItem("BHXH", 4, -1), new ImageComboBoxItem("BHYT", 5, -1), new ImageComboBoxItem("BHTN", 6, -1), new ImageComboBoxItem("BHXH, BHYT, BHTN", 7, -1), new ImageComboBoxItem("Ph\x00ed c\x00f4ng đo\x00e0n", 8, -1), new ImageComboBoxItem("Tiền đ\x00f3ng thuế", 9, -1), new ImageComboBoxItem("Tạm ứng", 10, -1), new ImageComboBoxItem("C\x00f4ng t\x00e1c ph\x00ed", 11, -1), new ImageComboBoxItem("Thực l\x00e3nh", 12, -1), new ImageComboBoxItem("Ứng Kỳ 1", 13, -1) });
            this.repFilter.Name = "repFilter";
            this.repEmployeeName.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repEmployeeName.Appearance.Options.UseFont = true;
            this.repEmployeeName.AutoHeight = false;
            this.repEmployeeName.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repEmployeeName.Name = "repEmployeeName";
            this.repEmployeeName.NullText = "[T\x00ean nh\x00e2n vi\x00ean]";
            this.repEmployeeName.ReadOnly = true;
            this.repEmployee.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repEmployee.Appearance.Options.UseFont = true;
            this.repEmployee.AutoHeight = false;
            this.repEmployee.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repEmployee.Name = "repEmployee";
            this.repEmployee.NullText = "[Chọn nh\x00e2n vi\x00ean]";
            this.repEmployee.View = this.repositoryItemGridLookUpEdit1View;
            this.repositoryItemGridLookUpEdit1View.Columns.AddRange(new GridColumn[] { this.colEmployeeCode, this.colFirstName, this.colLastName });
            this.repositoryItemGridLookUpEdit1View.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.repositoryItemGridLookUpEdit1View.Name = "repositoryItemGridLookUpEdit1View";
            this.repositoryItemGridLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
            this.repositoryItemGridLookUpEdit1View.OptionsView.ShowAutoFilterRow = true;
            this.repositoryItemGridLookUpEdit1View.OptionsView.ShowGroupPanel = false;
            this.colEmployeeCode.Caption = "M\x00e3";
            this.colEmployeeCode.FieldName = "EmployeeCode";
            this.colEmployeeCode.Name = "colEmployeeCode";
            this.colEmployeeCode.Visible = true;
            this.colEmployeeCode.VisibleIndex = 0;
            this.colFirstName.Caption = "Họ l\x00f3t";
            this.colFirstName.FieldName = "FirstName";
            this.colFirstName.Name = "colFirstName";
            this.colFirstName.Visible = true;
            this.colFirstName.VisibleIndex = 1;
            this.colLastName.Caption = "T\x00ean";
            this.colLastName.FieldName = "LastName";
            this.colLastName.Name = "colLastName";
            this.colLastName.Visible = true;
            this.colLastName.VisibleIndex = 2;
            this.repositoryItemComboBox1.AutoHeight = false;
            this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemComboBox1.Name = "repositoryItemComboBox1";
            this.repDepartment.AutoHeight = false;
            this.repDepartment.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repDepartment.Name = "repDepartment";
            this.repBranch.AutoHeight = false;
            this.repBranch.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repBranch.Name = "repBranch";
            this.repGroup.AutoHeight = false;
            this.repGroup.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repGroup.Name = "repGroup";
            this.gridColumn1.Caption = "gridColumn1";
            this.gridColumn1.Name = "gridColumn1";
            this.gridColumn1.Visible = true;
            this.gridColumn1.VisibleIndex = 0;
            this.gridColumn2.Caption = "gridColumn2";
            this.gridColumn2.Name = "gridColumn2";
            this.gridColumn2.Visible = true;
            this.gridColumn2.VisibleIndex = 1;
            this.gcList.Dock = DockStyle.Fill;
            this.gcList.EmbeddedNavigator.Buttons.Append.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.CancelEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Edit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.EndEdit.Visible = false;
            this.gcList.EmbeddedNavigator.Buttons.Remove.Visible = false;
            this.gcList.EmbeddedNavigator.TextStringFormat = "{0}/{1}";
            this.gcList.Location = new Point(0x13, 0x1a);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repCalculator });
            this.gcList.Size = new Size(0x41e, 0x261);
            this.gcList.TabIndex = 6;
            this.gcList.UseEmbeddedNavigator = true;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.GroupRow.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gbList.Appearance.GroupRow.Options.UseFont = true;
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Appearance.Row.Options.UseTextOptions = true;
            this.gbList.Appearance.Row.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.Bands.AddRange(new GridBand[] { this.gridBand1, this.gridBand2, this.gBandSocialInsurance, this.gBandHealthInsurance, this.gBandUnemploymentInsurance, this.gridBand5 });
            this.gbList.BorderStyle = BorderStyles.NoBorder;
            this.gbList.ColumnPanelRowHeight = 0x20;
            this.gbList.Columns.AddRange(new BandedGridColumn[] { 
                this.gridColumn3, this.gridColumn4, this.gridColumn5, this.colInsuranceCode, this.colBasicSalary, this.gridColumn6, this.gridColumn7, this.gridColumn8, this.colSocialInsurance1, this.colSocialInsurance, this.colSocial, this.colHealthInsurance1, this.colHealthInsurance, this.colHealth, this.colUnemploymentInsurance1, this.colUnemploymentInsurance, 
                this.colUnemployment, this.colTotalInsurance, this.colInsurance1, this.colInsurance
             });
            this.gbList.FixedLineWidth = 1;
            this.gbList.FocusRectStyle = DrawFocusRectStyle.RowFocus;
            this.gbList.GridControl = this.gcList;
            this.gbList.GroupPanelText = "K\x00e9o v\x00e0 Thả cột v\x00e0o đ\x00e2y để nh\x00f3m dữ liệu";
            this.gbList.IndicatorWidth = 40;
            this.gbList.Name = "gbList";
            this.gbList.OptionsBehavior.AllowIncrementalSearch = true;
            this.gbList.OptionsBehavior.AutoExpandAllGroups = true;
            this.gbList.OptionsBehavior.CopyToClipboardWithColumnHeaders = false;
            this.gbList.OptionsBehavior.FocusLeaveOnTab = true;
            this.gbList.OptionsCustomization.AllowFilter = false;
            this.gbList.OptionsCustomization.AllowSort = false;
            this.gbList.OptionsFilter.AllowColumnMRUFilterList = false;
            this.gbList.OptionsFilter.AllowFilterEditor = false;
            this.gbList.OptionsFilter.AllowMRUFilterList = false;
            this.gbList.OptionsLayout.StoreAllOptions = true;
            this.gbList.OptionsLayout.StoreAppearance = true;
            this.gbList.OptionsMenu.EnableColumnMenu = false;
            this.gbList.OptionsMenu.EnableGroupPanelMenu = false;
            this.gbList.OptionsNavigation.EnterMoveNextColumn = true;
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.EnableAppearanceEvenRow = true;
            this.gbList.OptionsView.ShowAutoFilterRow = true;
            this.gbList.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never;
            this.gbList.OptionsView.ShowFooter = true;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(this.gbList_CustomDrawRowIndicator);
            this.gridBand1.Columns.Add(this.gridColumn3);
            this.gridBand1.Columns.Add(this.gridColumn4);
            this.gridBand1.Columns.Add(this.gridColumn5);
            this.gridBand1.Columns.Add(this.colInsuranceCode);
            this.gridBand1.Fixed = FixedStyle.Left;
            this.gridBand1.Name = "gridBand1";
            this.gridBand1.Width = 0x150;
            this.gridColumn3.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gridColumn3.AppearanceHeader.Options.UseFont = true;
            this.gridColumn3.Caption = "M\x00e3 nh\x00e2n vi\x00ean";
            this.gridColumn3.FieldName = "EmployeeCode";
            this.gridColumn3.Name = "gridColumn3";
            this.gridColumn3.OptionsColumn.AllowEdit = false;
            this.gridColumn3.OptionsColumn.ReadOnly = true;
            this.gridColumn3.Visible = true;
            this.gridColumn3.Width = 0x41;
            this.gridColumn4.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gridColumn4.AppearanceHeader.Options.UseFont = true;
            this.gridColumn4.Caption = "Họ l\x00f3t";
            this.gridColumn4.FieldName = "FirstName";
            this.gridColumn4.Name = "gridColumn4";
            this.gridColumn4.OptionsColumn.AllowEdit = false;
            this.gridColumn4.OptionsColumn.ReadOnly = true;
            this.gridColumn4.Visible = true;
            this.gridColumn4.Width = 100;
            this.gridColumn5.AppearanceHeader.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.gridColumn5.AppearanceHeader.Options.UseFont = true;
            this.gridColumn5.Caption = "T\x00ean";
            this.gridColumn5.FieldName = "LastName";
            this.gridColumn5.Name = "gridColumn5";
            this.gridColumn5.OptionsColumn.AllowEdit = false;
            this.gridColumn5.OptionsColumn.ReadOnly = true;
            this.gridColumn5.Visible = true;
            this.gridColumn5.Width = 0x30;
            this.colInsuranceCode.AppearanceHeader.ForeColor = Color.Brown;
            this.colInsuranceCode.AppearanceHeader.Options.UseForeColor = true;
            this.colInsuranceCode.Caption = "Số sổ BHXH";
            this.colInsuranceCode.FieldName = "InsuranceCode";
            this.colInsuranceCode.Name = "colInsuranceCode";
            this.colInsuranceCode.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colInsuranceCode.OptionsColumn.ReadOnly = true;
            this.colInsuranceCode.Visible = true;
            this.colInsuranceCode.Width = 0x7b;
            this.gridBand2.Columns.Add(this.colBasicSalary);
            this.gridBand2.Columns.Add(this.gridColumn6);
            this.gridBand2.Columns.Add(this.gridColumn7);
            this.gridBand2.Columns.Add(this.gridColumn8);
            this.gridBand2.Name = "gridBand2";
            this.gridBand2.Width = 300;
            this.colBasicSalary.AppearanceHeader.ForeColor = Color.DarkGreen;
            this.colBasicSalary.AppearanceHeader.Options.UseForeColor = true;
            this.colBasicSalary.Caption = "Lương căn bản";
            this.colBasicSalary.ColumnEdit = this.repCalculator;
            this.colBasicSalary.FieldName = "BasicSalary";
            this.colBasicSalary.Name = "colBasicSalary";
            this.colBasicSalary.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colBasicSalary.OptionsColumn.ReadOnly = true;
            this.colBasicSalary.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colBasicSalary.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colBasicSalary.Visible = true;
            this.repCalculator.AutoHeight = false;
            this.repCalculator.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCalculator.DisplayFormat.FormatString = "{0:##,##0}";
            this.repCalculator.EditFormat.FormatString = "{0:##,##0}";
            this.repCalculator.Mask.UseMaskAsDisplayFormat = true;
            this.repCalculator.Name = "repCalculator";
            this.gridColumn6.AppearanceHeader.ForeColor = Color.DarkGreen;
            this.gridColumn6.AppearanceHeader.Options.UseForeColor = true;
            this.gridColumn6.Caption = "Quỹ lương BHXH";
            this.gridColumn6.ColumnEdit = this.repCalculator;
            this.gridColumn6.FieldName = "BasicSalary";
            this.gridColumn6.Name = "gridColumn6";
            this.gridColumn6.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.gridColumn6.OptionsColumn.ReadOnly = true;
            this.gridColumn6.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.gridColumn6.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.gridColumn6.Visible = true;
            this.gridColumn7.AppearanceHeader.ForeColor = Color.DarkGreen;
            this.gridColumn7.AppearanceHeader.Options.UseForeColor = true;
            this.gridColumn7.Caption = "Quỹ lương BHYT";
            this.gridColumn7.ColumnEdit = this.repCalculator;
            this.gridColumn7.FieldName = "BasicSalary";
            this.gridColumn7.Name = "gridColumn7";
            this.gridColumn7.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.gridColumn7.OptionsColumn.ReadOnly = true;
            this.gridColumn7.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.gridColumn7.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.gridColumn7.Visible = true;
            this.gridColumn8.AppearanceHeader.ForeColor = Color.DarkGreen;
            this.gridColumn8.AppearanceHeader.Options.UseForeColor = true;
            this.gridColumn8.Caption = "Quỹ lương BHTN";
            this.gridColumn8.ColumnEdit = this.repCalculator;
            this.gridColumn8.FieldName = "BasicSalary";
            this.gridColumn8.Name = "gridColumn8";
            this.gridColumn8.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.gridColumn8.OptionsColumn.ReadOnly = true;
            this.gridColumn8.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.gridColumn8.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.gridColumn8.Visible = true;
            this.gBandSocialInsurance.AppearanceHeader.ForeColor = Color.Purple;
            this.gBandSocialInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.gBandSocialInsurance.AppearanceHeader.Options.UseTextOptions = true;
            this.gBandSocialInsurance.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gBandSocialInsurance.Caption = "Bảo hiểm x\x00e3 hội";
            this.gBandSocialInsurance.Columns.Add(this.colSocialInsurance1);
            this.gBandSocialInsurance.Columns.Add(this.colSocialInsurance);
            this.gBandSocialInsurance.Columns.Add(this.colSocial);
            this.gBandSocialInsurance.Name = "gBandSocialInsurance";
            this.gBandSocialInsurance.Width = 0xe1;
            this.colSocialInsurance1.AppearanceHeader.ForeColor = Color.Purple;
            this.colSocialInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colSocialInsurance1.Caption = "Tr\x00edch v\x00e0o chi ph\x00ed";
            this.colSocialInsurance1.ColumnEdit = this.repCalculator;
            this.colSocialInsurance1.FieldName = "SocialInsurance1";
            this.colSocialInsurance1.Name = "colSocialInsurance1";
            this.colSocialInsurance1.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colSocialInsurance1.OptionsColumn.ReadOnly = true;
            this.colSocialInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSocialInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSocialInsurance1.Visible = true;
            this.colSocialInsurance.AppearanceHeader.ForeColor = Color.Purple;
            this.colSocialInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colSocialInsurance.Caption = "Trừ v\x00e0o lương";
            this.colSocialInsurance.ColumnEdit = this.repCalculator;
            this.colSocialInsurance.FieldName = "SocialInsurance";
            this.colSocialInsurance.Name = "colSocialInsurance";
            this.colSocialInsurance.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colSocialInsurance.OptionsColumn.ReadOnly = true;
            this.colSocialInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSocialInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSocialInsurance.Visible = true;
            this.colSocial.AppearanceHeader.ForeColor = Color.Purple;
            this.colSocial.AppearanceHeader.Options.UseForeColor = true;
            this.colSocial.Caption = "Tổng cộng";
            this.colSocial.ColumnEdit = this.repCalculator;
            this.colSocial.FieldName = "Social";
            this.colSocial.Name = "colSocial";
            this.colSocial.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colSocial.OptionsColumn.ReadOnly = true;
            this.colSocial.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colSocial.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colSocial.Visible = true;
            this.gBandHealthInsurance.AppearanceHeader.ForeColor = Color.Blue;
            this.gBandHealthInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.gBandHealthInsurance.AppearanceHeader.Options.UseTextOptions = true;
            this.gBandHealthInsurance.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gBandHealthInsurance.Caption = "Bảo hiểm y tế";
            this.gBandHealthInsurance.Columns.Add(this.colHealthInsurance1);
            this.gBandHealthInsurance.Columns.Add(this.colHealthInsurance);
            this.gBandHealthInsurance.Columns.Add(this.colHealth);
            this.gBandHealthInsurance.Name = "gBandHealthInsurance";
            this.gBandHealthInsurance.Width = 0xe1;
            this.colHealthInsurance1.AppearanceHeader.ForeColor = Color.Blue;
            this.colHealthInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colHealthInsurance1.Caption = "Tr\x00edch v\x00e0o chi ph\x00ed";
            this.colHealthInsurance1.ColumnEdit = this.repCalculator;
            this.colHealthInsurance1.FieldName = "HealthInsurance1";
            this.colHealthInsurance1.Name = "colHealthInsurance1";
            this.colHealthInsurance1.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colHealthInsurance1.OptionsColumn.ReadOnly = true;
            this.colHealthInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colHealthInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colHealthInsurance1.Visible = true;
            this.colHealthInsurance.AppearanceHeader.ForeColor = Color.Blue;
            this.colHealthInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colHealthInsurance.Caption = "Trừ v\x00e0o lương";
            this.colHealthInsurance.ColumnEdit = this.repCalculator;
            this.colHealthInsurance.FieldName = "HealthInsurance";
            this.colHealthInsurance.Name = "colHealthInsurance";
            this.colHealthInsurance.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colHealthInsurance.OptionsColumn.ReadOnly = true;
            this.colHealthInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colHealthInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colHealthInsurance.Visible = true;
            this.colHealth.AppearanceHeader.ForeColor = Color.Blue;
            this.colHealth.AppearanceHeader.Options.UseForeColor = true;
            this.colHealth.Caption = "Tổng cộng";
            this.colHealth.ColumnEdit = this.repCalculator;
            this.colHealth.FieldName = "Health";
            this.colHealth.Name = "colHealth";
            this.colHealth.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colHealth.OptionsColumn.ReadOnly = true;
            this.colHealth.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colHealth.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colHealth.Visible = true;
            this.gBandUnemploymentInsurance.AppearanceHeader.ForeColor = Color.DarkGreen;
            this.gBandUnemploymentInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.gBandUnemploymentInsurance.AppearanceHeader.Options.UseTextOptions = true;
            this.gBandUnemploymentInsurance.AppearanceHeader.TextOptions.HAlignment = HorzAlignment.Center;
            this.gBandUnemploymentInsurance.Caption = "Bảo hiểm thất nghiệp";
            this.gBandUnemploymentInsurance.Columns.Add(this.colUnemploymentInsurance1);
            this.gBandUnemploymentInsurance.Columns.Add(this.colUnemploymentInsurance);
            this.gBandUnemploymentInsurance.Columns.Add(this.colUnemployment);
            this.gBandUnemploymentInsurance.Name = "gBandUnemploymentInsurance";
            this.gBandUnemploymentInsurance.Width = 0xe1;
            this.colUnemploymentInsurance1.AppearanceHeader.ForeColor = Color.DarkGreen;
            this.colUnemploymentInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colUnemploymentInsurance1.Caption = "Tr\x00edch v\x00e0o chi ph\x00ed";
            this.colUnemploymentInsurance1.ColumnEdit = this.repCalculator;
            this.colUnemploymentInsurance1.FieldName = "UnemploymentInsurance1";
            this.colUnemploymentInsurance1.Name = "colUnemploymentInsurance1";
            this.colUnemploymentInsurance1.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colUnemploymentInsurance1.OptionsColumn.ReadOnly = true;
            this.colUnemploymentInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnemploymentInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnemploymentInsurance1.Visible = true;
            this.colUnemploymentInsurance.AppearanceHeader.ForeColor = Color.DarkGreen;
            this.colUnemploymentInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colUnemploymentInsurance.Caption = "Trừ v\x00e0o lương";
            this.colUnemploymentInsurance.ColumnEdit = this.repCalculator;
            this.colUnemploymentInsurance.FieldName = "UnemploymentInsurance";
            this.colUnemploymentInsurance.Name = "colUnemploymentInsurance";
            this.colUnemploymentInsurance.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colUnemploymentInsurance.OptionsColumn.ReadOnly = true;
            this.colUnemploymentInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnemploymentInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnemploymentInsurance.Visible = true;
            this.colUnemployment.AppearanceHeader.ForeColor = Color.DarkGreen;
            this.colUnemployment.AppearanceHeader.Options.UseForeColor = true;
            this.colUnemployment.Caption = "Tổng cộng";
            this.colUnemployment.ColumnEdit = this.repCalculator;
            this.colUnemployment.FieldName = "Unemployment";
            this.colUnemployment.Name = "colUnemployment";
            this.colUnemployment.OptionsColumn.AllowMerge = DefaultBoolean.False;
            this.colUnemployment.OptionsColumn.ReadOnly = true;
            this.colUnemployment.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colUnemployment.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colUnemployment.Visible = true;
            this.gridBand5.Columns.Add(this.colTotalInsurance);
            this.gridBand5.Columns.Add(this.colInsurance1);
            this.gridBand5.Columns.Add(this.colInsurance);
            this.gridBand5.Name = "gridBand5";
            this.gridBand5.Width = 0xe1;
            this.colTotalInsurance.AppearanceHeader.ForeColor = Color.Red;
            this.colTotalInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colTotalInsurance.Caption = "Tổng cộng";
            this.colTotalInsurance.ColumnEdit = this.repCalculator;
            this.colTotalInsurance.FieldName = "TotalInsurance";
            this.colTotalInsurance.Name = "colTotalInsurance";
            this.colTotalInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colTotalInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colTotalInsurance.Visible = true;
            this.colInsurance1.AppearanceHeader.ForeColor = Color.Red;
            this.colInsurance1.AppearanceHeader.Options.UseForeColor = true;
            this.colInsurance1.Caption = "Tổng tr\x00edch v\x00e0o chi ph\x00ed";
            this.colInsurance1.ColumnEdit = this.repCalculator;
            this.colInsurance1.FieldName = "Insurance1";
            this.colInsurance1.Name = "colInsurance1";
            this.colInsurance1.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsurance1.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsurance1.Visible = true;
            this.colInsurance.AppearanceHeader.ForeColor = Color.Red;
            this.colInsurance.AppearanceHeader.Options.UseForeColor = true;
            this.colInsurance.Caption = "Tổng trừ v\x00e0o lương";
            this.colInsurance.ColumnEdit = this.repCalculator;
            this.colInsurance.FieldName = "Insurance";
            this.colInsurance.Name = "colInsurance";
            this.colInsurance.SummaryItem.DisplayFormat = "{0:##,##0}";
            this.colInsurance.SummaryItem.SummaryType = SummaryItemType.Sum;
            this.colInsurance.Visible = true;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.gcList);
            base.Controls.Add(this.hideContainerLeft);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xucInsuranceByMonth";
            base.Size = new Size(0x431, 0x27b);
            base.Load += new EventHandler(this.xucInsuranceByMonth_Load);
            this.barManager1.EndInit();
            this.repMonth.EndInit();
            this.repYear.EndInit();
            this.dockManager1.EndInit();
            this.hideContainerLeft.ResumeLayout(false);
            this.dockPanel1.ResumeLayout(false);
            this.dockPanel1_Container.ResumeLayout(false);
            this.imageCollection2.EndInit();
            this.repFilter.EndInit();
            this.repEmployeeName.EndInit();
            this.repEmployee.EndInit();
            this.repositoryItemGridLookUpEdit1View.EndInit();
            this.repositoryItemComboBox1.EndInit();
            this.repDepartment.EndInit();
            this.repBranch.EndInit();
            this.repGroup.EndInit();
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.repCalculator.EndInit();
            base.ResumeLayout(false);
        }

        public void LoadGrid(int Level, string Code)
        {
            try
            {
                this.gcList.DataSource = new HRM_SALARY().GetListInsurance(this.m_Level, this.m_Code, this.m_Month, this.m_Year);
                HRM_SALARY_TABLELIST hrm_salary_tablelist = new HRM_SALARY_TABLELIST();
                hrm_salary_tablelist.Get(this.m_Month, this.m_Year);
                this.colSocialInsurance.Caption = "Trừ v\x00e0o lương (" + hrm_salary_tablelist.SocialInsurance.ToString() + "%)";
                this.colHealthInsurance.Caption = "Trừ v\x00e0o lương (" + hrm_salary_tablelist.HealthInsurance.ToString() + "%)";
                this.colUnemploymentInsurance.Caption = "Trừ v\x00e0o lương (" + hrm_salary_tablelist.UnemploymentInsurance.ToString() + "%)";
                this.colInsurance.Caption = "Tổng cộng (" + (((hrm_salary_tablelist.SocialInsurance + hrm_salary_tablelist.HealthInsurance) + hrm_salary_tablelist.UnemploymentInsurance)).ToString() + "%)";
                this.colSocialInsurance1.Caption = "Tr\x00edch v\x00e0o chi ph\x00ed (" + hrm_salary_tablelist.SocialInsurance1.ToString() + "%)";
                this.colHealthInsurance1.Caption = "Tr\x00edch v\x00e0o chi ph\x00ed (" + hrm_salary_tablelist.HealthInsurance1.ToString() + "%)";
                this.colUnemploymentInsurance1.Caption = "Tr\x00edch v\x00e0o chi ph\x00ed (" + ((hrm_salary_tablelist.UnemploymentInsurance1 * 100.0)).ToString() + "%)";
                this.colInsurance1.Caption = "Tổng cộng (" + (((hrm_salary_tablelist.SocialInsurance1 + hrm_salary_tablelist.HealthInsurance1) + hrm_salary_tablelist.UnemploymentInsurance1)).ToString() + "%)";
                this.colTotalInsurance.Caption = "Tổng cộng (" + ((((((hrm_salary_tablelist.SocialInsurance + hrm_salary_tablelist.HealthInsurance) + hrm_salary_tablelist.UnemploymentInsurance) + hrm_salary_tablelist.SocialInsurance1) + hrm_salary_tablelist.HealthInsurance1) + hrm_salary_tablelist.UnemploymentInsurance1)).ToString() + "%)";
                this.gBandSocialInsurance.Caption = "Bảo hiểm x\x00e3 hội (" + ((hrm_salary_tablelist.SocialInsurance + hrm_salary_tablelist.SocialInsurance1)).ToString() + "%)";
                this.gBandHealthInsurance.Caption = "Bảo hiểm y tế (" + ((hrm_salary_tablelist.HealthInsurance + hrm_salary_tablelist.HealthInsurance1)).ToString() + "%)";
                this.gBandUnemploymentInsurance.Caption = "Bảo hiểm thất nghiệp (" + ((hrm_salary_tablelist.UnemploymentInsurance + hrm_salary_tablelist.UnemploymentInsurance1)).ToString() + "%)";
            }
            catch
            {
            }
        }

        private void RaiseClosedHander()
        {
            if (this.Closed != null)
            {
                this.Closed(this);
            }
        }

        private void repMonth_EditValueChanged(object sender, EventArgs e)
        {
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        private void repMonth_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_Month = Convert.ToDateTime(e.NewValue.ToString()).Month;
        }

        private void repYear_EditValueChanged(object sender, EventArgs e)
        {
            this.LoadGrid(this.m_Level, this.m_Code);
        }

        private void repYear_EditValueChanging(object sender, ChangingEventArgs e)
        {
            this.m_Year = Convert.ToDateTime(e.NewValue.ToString()).Year;
        }

        private void xucInsuranceByMonth_Load(object sender, EventArgs e)
        {
        }

        public delegate void ClosedHander(object sender);
    }
}

